import { createRouter, createWebHashHistory } from 'vue-router'
import myInfo from './index.vue'
import age from './age.vue'
import sex from './sex.vue'
import userFacephoto from './userFacephoto.vue'
import realName from './realName.vue'
import myHealthCard from './healthCard.vue'

const routes = [
  {
    path: '/',
    component: myInfo,
    meta: {
      title: '个人中心',
      tabShow: true,
    },
  },
  {
    path: '/age',
    name: 'age',
    meta: {
      title: '年龄',
      tabShow: true,
    },
    component: age,
  },
  {
    path: '/sex',
    name: 'sex',
    meta: {
      title: '性别',
      tabShow: true,
    },
    component: sex,
  },
  {
    path: '/realName',
    name: 'realName',
    meta: {
      title: '真实姓名',
      tabShow: true,
    },
    component: realName,
  },
  {
    path: '/userFacephoto',
    name: 'userFacephoto',
    meta: {
      title: '人脸识别',
      tabShow: true,
    },
    component: userFacephoto,
  },{
    path: '/myHealthCard',
    name: 'myHealthCard',
    meta: {
      title: '健康证',
      tabShow: true,
    },
    component: myHealthCard,
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
